name: code
run_id: commands[0]
env HOME: /home/jenkins
env LANG: C.UTF-8
env PATH: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/bin:/opt/pyenv/bin:/tmp/venv-pI1L/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin
env PIP_DISABLE_PIP_VERSION_CHECK: 1
env PIP_USER: 0
env PYTHONHASHSEED: 2101152951
env PYTHONIOENCODING: utf-8
env SSH_AGENT_PID: 5283
env SSH_AUTH_SOCK: ********************************
env TESTS_BASE_PATH: /w/workspace/sim-a1-interface-tox-sonarqube/near-rt-ric-simulator/tests
env TOX_ENV_DIR: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code
env TOX_ENV_NAME: code
env TOX_WORK_DIR: /w/workspace/sim-a1-interface-tox-sonarqube/.tox
env VIRTUAL_ENV: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code
env __TOX_ENVIRONMENT_VARIABLE_ORIGINAL_CI: true
metadata pid: 27559
cwd: /w/workspace/sim-a1-interface-tox-sonarqube
allow: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/bin/*
cmd: pytest -o log_cli=true --cov /w/workspace/sim-a1-interface-tox-sonarqube/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 /w/workspace/sim-a1-interface-tox-sonarqube/near-rt-ric-simulator/tests/test_osc_2_1_0.py
exit_code: 0
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-9.0.2, pluggy-1.6.0
cachedir: .tox/code/.pytest_cache
rootdir: /w/workspace/sim-a1-interface-tox-sonarqube
plugins: cov-7.0.0
collected 4 items

near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason 
-------------------------------- live log setup --------------------------------
WARNING  connexion.options:options.py:83 The swagger_ui directory could not be found.
    Please install connexion with extra install: pip install connexion[swagger-ui]
    or provide the path to your local installation by passing swagger_path=<your path>

WARNING  connexion.options:options.py:83 The swagger_ui directory could not be found.
    Please install connexion with extra install: pip install connexion[swagger-ui]
    or provide the path to your local installation by passing swagger_path=<your path>

PASSED                                                                   [ 25%]
near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_apis PASSED          [ 50%]
near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_notificationDestination PASSED [ 75%]
near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_sendstatus 
-------------------------------- live log call ---------------------------------
INFO     werkzeug:_internal.py:224 [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
 * Running on http://127.0.0.1:8086
INFO     werkzeug:_internal.py:224 [33mPress CTRL+C to quit[0m
INFO     werkzeug:_internal.py:224 127.0.0.1 - - [04/Mar/2026 19:20:09] "[35m[1mPOST /statustest HTTP/1.1[0m" 201 -
PASSED    [100%]

=============================== warnings summary ===============================
near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason
near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/decorators/validation.py:16: DeprecationWarning: Accessing jsonschema.draft4_format_checker is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator.
    from jsonschema import Draft4Validator, ValidationError, draft4_format_checker

near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason
near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/json_schema.py:16: DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
    from jsonschema import Draft4Validator, RefResolver

near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/json_schema.py:17: DeprecationWarning: jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
    from jsonschema.exceptions import RefResolutionError, ValidationError  # noqa

near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/apps/flask_app.py:36: DeprecationWarning: 'app.json_encoder' is deprecated and will be removed in Flask 2.3. Customize 'app.json_provider_class' or 'app.json' instead.
    app.json_encoder = FlaskJSONEncoder

near-rt-ric-simulator/tests/test_osc_2_1_0.py: 56 warnings
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/apis/flask_api.py:236: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.3.
    setattr(flask._request_ctx_stack.top, 'connexion_context', context_dict)

near-rt-ric-simulator/tests/test_osc_2_1_0.py: 56 warnings
  /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/apis/flask_api.py:236: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.3. Use 'g' to store data, or 'request_ctx' to access the current context.
    setattr(flask._request_ctx_stack.top, 'connexion_context', context_dict)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================ tests coverage ================================
_______________ coverage: platform linux, python 3.10.6-final-0 ________________

Name                                                                        Stmts   Miss  Cover   Missing
---------------------------------------------------------------------------------------------------------
near-rt-ric-simulator/src/OSC_2.1.0/controllers/__init__.py                     0      0   100%
near-rt-ric-simulator/src/OSC_2.1.0/controllers/a1_mediator_controller.py     206     26    87%   107, 111-112, 124-126, 129-130, 163, 168-169, 172-173, 196, 225-227, 238, 248, 253-256, 298, 330-331
near-rt-ric-simulator/src/OSC_2.1.0/main.py                                   182     38    79%   48-51, 62, 94-95, 99-100, 103, 121, 124-125, 129, 135, 150-151, 173, 175, 179, 193-194, 223, 244-253, 259-265, 270
near-rt-ric-simulator/src/OSC_2.1.0/models/__init__.py                          0      0   100%
near-rt-ric-simulator/src/OSC_2.1.0/models/enforceStatus.py                    28      0   100%
near-rt-ric-simulator/src/OSC_2.1.0/var_declaration.py                         17      0   100%
near-rt-ric-simulator/src/common/maincommon.py                                 39      8    79%   34-35, 53, 56, 60-63, 72
near-rt-ric-simulator/src/common/payload_logging.py                            32      6    81%   32-39
near-rt-ric-simulator/src/common/utils.py                                      10      9    10%   20-29
near-rt-ric-simulator/test/common/compare_json.py                              63     24    62%   46, 57, 67, 71, 74, 80, 83, 87, 103-105, 108-127
near-rt-ric-simulator/tests/test_osc_2_1_0.py                                 371      0   100%
near-rt-ric-simulator/tests/unittest_setup.py                                  29      2    93%   63-64
---------------------------------------------------------------------------------------------------------
TOTAL                                                                         977    113    88%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
Required test coverage of 70% reached. Total coverage: 88.43%
======================= 4 passed, 118 warnings in 22.77s =======================
